projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb64072
)
net: mvpp2: Remove unreferenced in_use_thresh from struct mvpp2_bm_pool
author
Stefan Roese
<
[email protected]
>
Mon, 13 Mar 2017 05:50:04 +0000
(06:50 +0100)
committer
Stefan Roese
<
[email protected]
>
Wed, 29 Mar 2017 05:44:37 +0000
(07:44 +0200)
As pointed out by Stefan Chulski, this variable is unused and should be
removed.
Signed-off-by: Stefan Roese <
[email protected]
>
Cc: Stefan Chulski <
[email protected]
>
Acked-by: Joe Hershberger <
[email protected]
>
drivers/net/mvpp2.c
patch
|
blob
|
history
diff --git
a/drivers/net/mvpp2.c
b/drivers/net/mvpp2.c
index dc9fbb9068517136a0b24b97c987d998485f8ff3..8ffe6c84d438d396612feec0ce4be5bb995a5544 100644
(file)
--- a/
drivers/net/mvpp2.c
+++ b/
drivers/net/mvpp2.c
@@
-1245,9
+1245,6
@@
struct mvpp2_bm_pool {
/* Ports using BM pool */
u32 port_map;
-
- /* Occupied buffers indicator */
- int in_use_thresh;
};
/* Static declaractions */
@@
-2792,7
+2789,6
@@
static int mvpp2_bm_bufs_add(struct mvpp2_port *port,
/* Update BM driver with number of buffers added to pool */
bm_pool->buf_num += i;
- bm_pool->in_use_thresh = bm_pool->buf_num / 4;
return i;
}